/*
 *  msw7/factory.cpp
 *  mini
 *
 *  Created by jin on 1/1/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include "msw7/factory.h"

#include "app.h"
#include "msw7/appImp.h"
#include "msw7/windowImp.h"
#include <memory>

Factory& Factory::Instance()
{
    static std::auto_ptr<Factory> s_factory(new MSW7Factory);
    return *(s_factory.get());
}

MSW7Factory::~MSW7Factory()
{
}

AppImpBase* MSW7Factory::CreateAppImp(AppBase* app)
{
    return new MSW7AppImp(app);
}

WindowImpBase* MSW7Factory::CreateWindowImp(Window* win)
{
    return new MSW7WindowImp(win);
}


